﻿using Entity;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Utils;

namespace DataBaseConnect.IRepositories
{
    public interface IButtonRepository : IRepository<Button>
    {
        /// <summary>
        /// 获取所有按钮样式&&查询
        /// </summary>
        /// <param name="ButtonStyleName"></param>
        /// <returns></returns>
        List<ButtonStyle> GetButtonStyleList(string ButtonStyleName);

        /// <summary>
        /// 新增按钮样式信息
        /// </summary>
        /// <param name="Input">按钮样式实体</param>
        /// <returns></returns>
        ReceiveStatus AddButtonStyleMsg(ButtonStyle Input);

        /// <summary>
        /// 编辑按钮样式信息
        /// </summary>
        /// <param name="Input">按钮样式实体</param>
        /// <returns></returns>
        ReceiveStatus EditButtonStyleMsg(ButtonStyle Input);

        /// <summary>
        /// 根据按钮样式id获取对应的按钮样式
        /// </summary>
        /// <param name="where">筛选条件</param>
        /// <returns></returns>
        ButtonStyle GetButtonStyleIdMsg(Expression<Func<ButtonStyle, bool>> where);

        /// <summary>
        /// 根据条件查询按钮权限表
        /// </summary>
        /// <param name="where">查询条件</param>
        /// <returns></returns>
        List<ButtonRole> GetButtonRoleByMenuIdList(Expression<Func<ButtonRole, bool>> where);

        /// <summary>
        /// 设置菜单按钮权限
        /// </summary>
        /// <param name="ButtonRole">按钮信息集合</param>
        /// <returns></returns>
        ReceiveStatus SetButtonRoleMsg(List<ButtonRole> ButtonRole);

        /// <summary>
        /// 根据条件删除按钮权限表信息
        /// </summary>
        /// <param name="where"></param>
        /// <returns></returns>
        ReceiveStatus DelButtonRoleMsg(Expression<Func<ButtonRole, bool>> where);
    }
}
